package cn.com.shbs.model.UserInfo;


import java.io.Serializable;

public class UserInfo implements Serializable {

    private String user_code;
    private String user_type;
    private String password;
    private String username;
    private String login_name;
    private String belong_store;
    private String store_role_code;
    private String salt;

    public String getUser_code() {
        return user_code;
    }

    public void setUser_code(String user_code) {
        this.user_code = user_code;
    }

    public String getUser_type() {
        return user_type;
    }

    public void setUser_type(String user_type) {
        this.user_type = user_type;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getLogin_name() {
        return login_name;
    }

    public void setLogin_name(String login_name) {
        this.login_name = login_name;
    }

    public String getBelong_store() {
        return belong_store;
    }

    public void setBelong_store(String belong_store) {
        this.belong_store = belong_store;
    }

    public String getStore_role_code() {
        return store_role_code;
    }

    public void setStore_role_code(String store_role_code) {
        this.store_role_code = store_role_code;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }
    /**
     * 密码盐.
     * @return
     */
    public String getCredentialsSalt(){
        return this.username+this.salt;
    }
    //重新对盐重新进行了定义，用户名+salt，这样就更加不容易被破解
}
